package com.hutao.chargingpile.spread.mapper;

import com.hutao.chargingpile.spread.pojo.entity.CpClient;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hutao.chargingpile.spread.pojo.entity.ExcelCpClient;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author HuTao
 * @since 2023-03-28
 */
@Mapper
public interface CpClientMapper extends BaseMapper<CpClient> {

    /**
     * 查询客户管理
     * @param //start
     * @param //pagesize
     * @return
     */
    List<CpClient> findAll(Map<String,Object> map);

    /**
     * 分页查询
     * @return
     */
    int findCount(Map<String,Object> map);

    /**
     * excel导入
     */
    void insertClient(List<ExcelCpClient> list);

    /**
     * 添加用户信息
     */

    void addClient(CpClient cpClient);

    List<CpClient> find();

     //回显投资商下拉框
    List<CpClient> findInvestor();

     //回显性别下拉框
    List<CpClient> findSex();

}
